import request from '@/utils/request'

// 查询投诉记录列表
export function listYYYBeComplaint(query) {
  return request({
    url: '/BeYYYDocComplaint/YYYBeComplaint/list',
    method: 'get',
    params: query
  })
}

// 查询投诉记录详细
export function getYYYBeComplaint(complaintId) {
  return request({
    url: '/BeYYYDocComplaint/YYYBeComplaint/' + complaintId,
    method: 'get'
  })
}

// 新增投诉记录
export function addYYYBeComplaint(data) {
  return request({
    url: '/BeYYYDocComplaint/YYYBeComplaint',
    method: 'post',
    data: data
  })
}

// 修改投诉记录
export function updateYYYBeComplaint(data) {
  return request({
    url: '/BeYYYDocComplaint/YYYBeComplaint',
    method: 'put',
    data: data
  })
}

// 删除投诉记录
export function delYYYBeComplaint(complaintId) {
  return request({
    url: '/BeYYYDocComplaint/YYYBeComplaint/' + complaintId,
    method: 'delete'
  })
}
